package edu.sctu.alex.OtherMouth.day1;

/**
 * Created by user03 on 2015/4/29.
 */
public class Day1Client {
    public static void main(String[] args) {

    Textone textseven1 = new Textone("alex","male",18);


    Textone textseven2 = new Textone("bob","male",19);


    Textone textseven3 = new Textone("xiaohong","female",19);


    Textone[] textsevesn = {textseven1, textseven2, textseven3};
        printArray( textsevesn);
    }

    private static void printArray(Textone[] textsevesn) {
        for (int i = 0; i <textsevesn.length; i++) {


            System.out.println("The name:"+textsevesn[i].name);
            System.out.println("The sex:"+textsevesn[i].sex);
            System.out.println("The age:"+textsevesn[i].age);
        }

    }
}



